package com.yonyou.pmclouds.plantemplate.processor;

import com.yonyou.pmclouds.basecom.bp.processor.SingleProcessor;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.plantemplate.entity.ScheduleTemplateVO;
import com.yonyou.pmclouds.plantemplate.rmiitf.IScheduleTemplateItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description: 计划模板保存任务项处理类
 * @Author: zhangzhonghao
 * @Date: 2020-03-06
 */

@Component
public class ScheduleTemplateInsertItemProcessor implements SingleProcessor<ScheduleTemplateVO> {

    @Autowired
    private IScheduleTemplateItemService templateItemServie;

    @Override
    public void process(ScheduleTemplateVO vo, ScheduleTemplateVO orig) throws BusinessException {
        templateItemServie.insert(vo);
    }

}
